package com.mxt.devices.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author mxt
 * @since 2023-06-15
 */
@TableName("ci_devices")
public class Devices implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "device_id",type = IdType.AUTO)
    private Integer deviceId;

    private String productName;

    private String machineSn;

    private String ofcompany;

    private String deviceCrack;

    private String deviceStatus;

    private String deviceAddress;

    private String deviceTypeId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime activationTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastOnlineTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }
    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }
    public String getMachineSn() {
        return machineSn;
    }

    public void setMachineSn(String machineSn) {
        this.machineSn = machineSn;
    }
    public String getOfcompany() {
        return ofcompany;
    }

    public void setOfcompany(String ofcompany) {
        this.ofcompany = ofcompany;
    }
    public String getDeviceCrack() {
        return deviceCrack;
    }

    public void setDeviceCrack(String deviceCrack) {
        this.deviceCrack = deviceCrack;
    }
    public String getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(String deviceStatus) {
        this.deviceStatus = deviceStatus;
    }
    public String getDeviceAddress() {
        return deviceAddress;
    }

    public void setDeviceAddress(String deviceAddress) {
        this.deviceAddress = deviceAddress;
    }
    public String getDeviceTypeId() {
        return deviceTypeId;
    }

    public void setDeviceTypeId(String deviceTypeId) {
        this.deviceTypeId = deviceTypeId;
    }
    public LocalDateTime getActivationTime() {
        return activationTime;
    }

    public void setActivationTime(LocalDateTime activationTime) {
        this.activationTime = activationTime;
    }
    public LocalDateTime getLastOnlineTime() {
        return lastOnlineTime;
    }

    public void setLastOnlineTime(LocalDateTime lastOnlineTime) {
        this.lastOnlineTime = lastOnlineTime;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Devices{" +
            "deviceId=" + deviceId +
            ", productName=" + productName +
            ", machineSn=" + machineSn +
            ", ofcompany=" + ofcompany +
            ", deviceCrack=" + deviceCrack +
            ", deviceStatus=" + deviceStatus +
            ", deviceAddress=" + deviceAddress +
            ", deviceTypeId=" + deviceTypeId +
            ", activationTime=" + activationTime +
            ", lastOnlineTime=" + lastOnlineTime +
            ", createTime=" + createTime +
        "}";
    }
}
